{% extends 'base.html' %}
{% load staticfiles %}

{% block content %}

<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <h2 class="page-header">修改房间价格</h2>
    <div>
        <form class="form-horizontal" method="POST" action="/room_type/edit?id={{room_type.id}}">
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">编号</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" name="num" value="{{room_type.type_num}}" readonly>
                </div>
            </div>
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">房间类型</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" name="room_type" value="{{room_type.name}}" readonly>
                </div>
            </div>
            <div class="form-group">
                <label for="inputPassword3" class="col-sm-2 control-label">价格</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" name="price" value="{{room_type.price}}">
                </div>
            </div>
            {% csrf_token %}
            <input type="hidden" name="id" value="{{room_type.id}}">
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-2">
                    <button type="submit" class="btn btn-primary">添加</button>
                </div>
            </div>
        </form>
    </div>
</div>

{% endblock %}